projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36eb0da
)
Fix crash in google reader on multiple files.
author
robertl
<robertl>
Fri, 17 Nov 2006 20:03:23 +0000
(20:03 +0000)
committer
robertl
<robertl>
Fri, 17 Nov 2006 20:03:23 +0000
(20:03 +0000)
google.c
patch
|
blob
|
history
diff --git
a/google.c
b/google.c
index 6ff6a8f595fba0a837a2e7fe0020f5cad70e7a2e..3c126ff621409c3439ac41bf1643d0ce075b435b 100644
(file)
--- a/
google.c
+++ b/
google.c
@@
-345,6
+345,20
@@
google_read(void)
}
}
xfree( script );
+ script = NULL;
+ }
+
+ /*
+ * 'Tis better to leak than crash when we are merging and
+ * don't see an 'end' in the first file. This feels a bit
+ * like plastering over a deeper problem...
+ *
+ */
+ if ( encoded_points ) {
+ encoded_points = NULL;
+ }
+ if ( encoded_levels ) {
+ encoded_levels = NULL;
}
}
#endif